<template>
  <FormItemWrapper v-bind="$attrs" :widget="widget" :designer="designer">
    <MyAlert 
      :type="widgetProps.alertType" :style="widgetProps.alertStyle" 
      :message="widgetProps.alertMessage"
    />
  </FormItemWrapper>
</template>
<script lang="ts" name="alert-widget" setup>
import { ref, computed } from 'vue';
import { useAttrs } from '/@/hooks/core/useAttrs';
import FormItemWrapper from './FormItemWrapper.vue'
import { useWidget } from '../useWidget'
import type { Designer } from '../../type'
import MyAlert from '/@/components/My/MyAlert.vue';
const props = defineProps({
  widget: { type: Object, default: {}},
  designer: { type: Object as () => Designer}
})
const widgetProps = props.widget.props
const { watchDefaultValue } = useWidget()
watchDefaultValue(props)
const attrs = useAttrs()
</script>

<style lang="less">


</style>
